package com.openflag.bwicservice.domain;


import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResultStatus {
    SUCCESS(0, "Success"),
    USER_NOT_FOUND(-101, "User not found"),
    USER_ASSET_NOT_ENOUGH(-102, "User's asset is not enough"),
    USER_DID_NOT_BID(-103, "User did not bid"),
    USER_MARKETVALUE_TOO_LOW(-104,"Bid Value is lower than current or marketvalue"),
    USER_NOT_TRADER(-105,"User is not trader"),
    USER_MARKETVALUE_LOWWER_ZERO(-107,"MarketValue is lower than 0"),
    BWIC_OVERDUE(-201, "BWIC is overdue"),
    BWIC_NOT_EXIST(-202,"Can't find a bwic with the clientId"),
    BWIC_WRONG_STATUS(-203,"Bwic's status is not fittable"),
    ACCOUNT_LOGIN_ERROR(-301,"Password wrong or account do not exist"),
    REGISTER_SAME_ACCOUNT(-302,"Duplicate account"),
    REGISTER_WRONG_ACCOUNT(-303,"Account is lack of standardization"),
    REGISTER_WRONG_PASSWORD(-304,"Password is lack of standardization"),
    REGISTER_WRONG_POSITION(-305,"Position is wrong"),
    REGISTER_WRONG_NAME(-306,"Name is lack of standardization"),
    WARRANT_CUSIP_DUPLICATION(-401,"竞标的Cusip序列号重复"),
    WARRANT_DUDATE_WRONG(-402,"DueDate is before createdDate"),
    WARRANT_POSITION_WRONG(-403,"Position is not positive"),
    SERVICE_CHARGE_WRONG(-501,"Service charge is over 1 or lower than 0"),
    SERVICE_CHARGE_POSITION_WRONG(-502,"Client Position is not trader");





    private final int value;
    private final String reasonPhrase;
}
